package com.ysm.smfu.holder;

import android.view.View;
import android.widget.TextView;

import com.ysm.smfu.R;
import com.ysm.smfu.bean.ZhangDanDetail;
import com.ysm.smfu.utils.UIUtils;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/11/16.
 */
public class AccountDetailHolder extends BaseHolder<ZhangDanDetail.ZhangDan> {
    @BindView(R.id.dingdan_time)
    TextView dingdanTime;
    @BindView(R.id.moneyDetail)
    TextView moneyDetail;
    @BindView(R.id.dingdanType)
    TextView dingdanType;

    @Override
    protected View initView() {
        View view = UIUtils.inflate(R.layout.holder_accountdetail);
        ButterKnife.bind(view);
        return view;
    }

    @Override
    protected void refreshView(ZhangDanDetail.ZhangDan data) {
//      设置显示数据
        dingdanTime.setText(data.createTime);
        moneyDetail.setText(data.money);
    }
}
